package cn.snowheart.decorator.starbucks.condiment;

import cn.snowheart.decorator.starbucks.beverage.BaseBeverage;

import java.math.BigDecimal;

/**
 * 牛奶
 *
 * @author liuwanxiang
 * @version 2019/06/27
 */
public class Milk extends CondimentDecorator {

    public Milk(BaseBeverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + "\n +              Milk";
    }

    @Override
    public BigDecimal cost() {
        return new BigDecimal("0.10").add(beverage.cost());
    }
}
